package com.aizuda.boot.modules.business.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author sangyirong
 * @ClassName WorkflowNodeField
 * @Version 1.0
 * @Date 2025/5/23 13:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "合同流程节点字段")
@TableName("workflow_node_field")
public class WorkflowNodeFieldEntity {

    @TableId(value = "id",type = IdType.AUTO)
    @Schema(description = "ID")
    private Integer id;

    @Schema(description = "所属节点ID")
    private Integer nodeId;

    @Schema(description = "所属模块ID")
    private Integer moduleId;

    @Schema(description = "所属字段ID")
    private Long fieldId;

    @Schema(description = "是否隐藏")
    private Boolean isHidden;

    @Schema(description = "是否可编辑")
    private Boolean canEdit;

    @Schema(description = "排序")
    private Integer fieldOrder;

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;

    @Schema(description = "删除标识（0：否[默认]，1：是）")
    @TableLogic
    private Boolean isDeleted;
}
